package etnorservice.etnor_service.config;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "file")
@Data
public class FileUploadConfig {
    private String activeProfile;
    private Storage storage = new Storage();
    private String uploadDir;
    private String allowedTypes = "image/jpeg,image/png,image/gif";
    private long maxFileSize = 5 * 1024 * 1024; // 5MB

    @Data
    public static class Storage {
        private String type = "server"; // 默认本地存储
    }
}
